//
//  LXDialRulerView.h
//  ibgs_patients
//
//  Created by xiao.zhao@lachesis-mh.com on 15/12/29.
//  Copyright © 2015年 xiao.zhao@lachesis-mh.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LXDialRulerView;
@protocol LXDialRulerViewDelegate <NSObject>

-(void)rulerView:(LXDialRulerView *)rulerView didScrollToValue:(CGFloat)value;

@end

@interface LXDialRulerView : UIView

@property (nonatomic, assign) id <LXDialRulerViewDelegate> delegate;

/*
 *  count * average = 刻度最大值
 *  @param count        10个小刻度为一个大刻度，大刻度的数量
 *  @param average      每个小刻度的值，最小精度 0.1
 *  @param currentValue 直尺初始化的刻度值
 *  @param mode         是否最小模式
 */
- (void)showRulerScrollViewWithMin:(NSUInteger)min
                               Max:(NSUInteger)max
                             average:(NSNumber *)average
                        currentValue:(CGFloat)currentValue
                           smallMode:(BOOL)mode;

-(void)scrollToValue:(CGFloat)value;

@end
